package com.ponhu.ea2.enums;

/**
 * Response返回值错误码列表
 */
public enum ResponseCodeEnum {

    SUCCESS(200, "success"),

    PARAMETER_IS_INCORRECT_800001(800001, "参数不正确"),
    PARAMETER_VALIDATE_EXCEPTION_800002(800002, "参数验证表达式不正确"),

    CLOUD_TRADE_GOODS_NOT_EXISTS_800100(800100, "云商商品不存在"),
    CLOUD_TRADE_GOODS_UPDATE_STATUS_EXCEPTION_800101(800101, "更新云商商品状态异常"),
    CLOUD_TRADE_GOODS_ADD_CHECK_RECORD_EXCEPTION_800102(800102, "添加云商商品审核记录异常"),
    CLOUD_TRADE_GOODS_CHECKED_OVER_800103(800103, "云商商品已审核完成"),
    CLOUD_TRADE_GOODS_CHANNEL_CODE_IS_EXISTS_800104(800104, "云商商品渠道商品编码已存在"),
    CLOUD_TRADE_GOODS_SAVE_DB_EXCEPTION_800105(800105, "云商商品保存数据库异常"),
    CLOUD_TRADE_GOODS_CHECKED_PASS_CAN_NOT_UPDATE_800106(800106, "云商商品已通过审核，不能修改"),
    CLOUD_TRADE_GOODS_UPDATE_DB_EXCEPTION_800107(800107, "云商商品更新数据库异常"),
    CLOUD_TRADE_GOODS_EDIT_EXCEPTION_800108(800108, "云商商品只有待审核状态可以编辑"),

    INVENTORY_ACCESSORY_EXCEPTION_800200(800200, "删除货品附件配件原数据异常"),
    INVENTORY_ACCESSORY_EXCEPTION_800201(800201, "保存货品附件配件新数据异常"),
    INVENTORY_PROP_EXCEPTION_800202(800202, "删除货品属性原数据异常"),
    INVENTORY_PROP_EXCEPTION_800203(800203, "保存货品属性新数据异常"),
    INVENTORY_EDIT_EXCEPTION_800204(800204, "编辑保存货品基本信息数据异常"),
    INVENTORY_CCIC_EXCEPTION_800205(800205, "编辑保存货品中检信息数据异常"),
    INVENTORY_EDIT_EXCEPTION_800206(800206, "编辑货品相关商品参数校验异常"),
    INVENTORY_EDIT_EXCEPTION_800207(800207, "编辑货品相关商品价格参数校验异常"),
    INVENTORY_EDIT_EXCEPTION_800208(800207, "编辑货品相关商品基本信息异常"),
    INVENTORY_EDIT_EXCEPTION_800209(800209, "查询货品不存在"),
    INVENTORY_EDIT_EXCEPTION_800210(800210, "编辑设置货品关联物料异常"),
    INVENTORY_EDIT_EXCEPTION_800211(800211, "编辑设置关联物料不存在"),
    INVENTORY_EDIT_EXCEPTION_800212(800212, "云商货品不可作为来源货品"),
    INVENTORY_EDIT_EXCEPTION_800213(800213, "商品当前不可修改"),
    INVENTORY_CODE_GENERATE_EXCEPTION_800212(800212, "生成货品编码的入库方式不存在"),
    INVENTORY_CODE_GENERATE_EXCEPTION_800213(800213, "生成货品编码保存生成记录异常"),
    INVENTORY_CODE_GENERATE_EXCEPTION_800214(800214, "生成货品编码自增数字超过每日最大值限制"),
    INVENTORY_EDIT_EXCEPTION_800215(800215, "Erp养护增加货品相关成本数据库操作异常"),
    INVENTORY_EDIT_EXCEPTION_800216(800216, "包小检AI识图识图结果保存失败"),
    INVENTORY_EDIT_EXCEPTION_800217(800217, "包小检AI识图关联物料修改失败"),
    INVENTORY_BATCH_EDIT_EXCEPTION_800218(800218, "货品批量修改解析上传文件异常"),
    INVENTORY_BATCH_EDIT_EXCEPTION_800219(800219, "货品批量修改数量不得大于500条"),
    INVENTORY_BATCH_EDIT_EXCEPTION_800220(800220, "货品批量修改查询货品库存信息异常"),
    INVENTORY_BATCH_EDIT_EXCEPTION_800221(800221, "货品批量修改数据修改操作异常"),
    INVENTORY_DOWNLOAD_TOOLS_EXCEPTION_800222(800222, "下载工具最大支持导入100条货品编码"),
    INVENTORY_DOWNLOAD_TOOLS_EXCEPTION_800223(800223, "下载工具读取导入文件发生程序异常"),
    INVENTORY_DOWNLOAD_TOOLS_EXCEPTION_800224(800224, "下载工具保存操作记录异常"),
    INVENTORY_OPR_LOGS_EXCEPTION_800225(800225, "查询采购中心货品操作日志异常"),
    INVENTORY_OPR_LOGS_EXCEPTION_800226(800226, "查询商品中心货品操作日志异常"),
    INVENTORY_OPR_LOGS_EXCEPTION_800227(800227, "查询订单中心货品操作日志异常"),
    INVENTORY_OPR_LOGS_EXCEPTION_800228(800228, "查询任务中心货品操作日志异常"),
    INVENTORY_OPR_LOGS_EXCEPTION_800229(800229, "排序汇总货品操作日志异常"),

    INVENTORY_CREATE_EXCEPTION_800220(800220, "生成货品数据失败"),

    DICT_ITEM_DATA_UPDATE_EXCEPTION_800301(800301, "字典项更新异常"),
    DICT_ITEM_DATA_SAVE_EXCEPTION_800302(800302, "字典项添加异常"),
    DICT_DATA_NOT_EXISTS_EXCEPTION_800303(800303, "字典数据不存在"),

    MATERIAL_DATA_NOT_EXISTS_800401(800401, "物料数据不存在"),
    MATERIAL_CREATE_EXCEPTION_800402(800402, "生成物料数据失败"),
    MATERIAL_EDIT_EXCEPTION_800403(800403, "更新物料信息失败"),

    PONHU_GOODS_NOT_EXISTS_800501(800501, "未查询到胖总管商品信息"),

    GOODS_EDIT_EXCEPTION_800601(800601, "编辑保存商品基本信息数据异常"),
    GOODS_DATA_NOT_EXISTS_800602(800602, "商品数据不存在"),

    PICK_INVENTORY_TOO_LONG_800701(800701, "选品导出数据不能超过3000"),
    PICK_INVENTORY_DEEP_PAGED_LIMIT(800702, "超过ES深分页限制异常"),

    SERIES_SAVE_EXISTS_800801(800801, "新增系列信息失败"),
    SERIES_EDIT_EXISTS_800802(800802, "更新系列信息失败"),

    MODEL_SAVE_EXISTS_800901(800901, "新增型号信息失败"),
    MODEL_EDIT_EXISTS_800902(800902, "更新型号信息失败"),

    NOT_ERROR_CODE(999999, ""),
    EXCEPTION_FAIL(-1, "error");


    private Integer code;
    private String msg;

    ResponseCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return this.code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}

